package xyz.comfyz.web.commons.security.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import xyz.comfyz.web.commons.security.access.basic.SecurityMetadataSource;

import java.util.Collection;


/**
 * @author :    comfy
 * @date :      2018-05-12 16:04:49
 * @since :     1.8
 * <p>
 * 获取当前系统所有请求映射
 */
@RestController
@RequestMapping("/request")
public final class RequestMappingController {

    @RequestMapping(value = "/mapping", method = RequestMethod.GET)
    public Collection getRequestMapping() throws IllegalArgumentException {
        return SecurityMetadataSource.requestMapping();
    }

}
